package com.tools.model;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * ImgZipModel
 *
 * @author < a href=" ">ZhangYang</ a>
 * @version v1.0.01
 * @date 2018-08-22 17:11
 */
public class ImgZipModel {
  private final StringProperty imgUrl;
  private final StringProperty imgName;
  private final StringProperty imgSize;

  public ImgZipModel(StringProperty imgUrl, StringProperty imgName, StringProperty imgSize) {
    this.imgUrl = imgUrl;
    this.imgName = imgName;
    this.imgSize = imgSize;
  }

  public ImgZipModel(String imgUrl, String imgName, String imgSize) {
    this.imgUrl = new SimpleStringProperty(imgUrl);
    this.imgName = new SimpleStringProperty(imgName);
    this.imgSize = new SimpleStringProperty(imgSize);
  }

  public String getImgUrl() {
    return imgUrl.get();
  }

  public StringProperty imgUrlProperty() {
    return imgUrl;
  }

  public void setImgUrl(String imgUrl) {
    this.imgUrl.set(imgUrl);
  }

  public String getImgName() {
    return imgName.get();
  }

  public StringProperty imgNameProperty() {
    return imgName;
  }

  public void setImgName(String imgName) {
    this.imgName.set(imgName);
  }

  public String getImgSize() {
    return imgSize.get();
  }

  public StringProperty imgSizeProperty() {
    return imgSize;
  }

  public void setImgSize(String imgSize) {
    this.imgSize.set(imgSize);
  }
}
